using System;
using System.Collections.Generic;
using System.Text;
using LngT.Interfaces;

namespace LngT.Interfaces
    {
    [Serializable]
    public class ItemResult
        {

        public ItemResult( int itemId, int userId, int mark, DateTime timestamp )
            {
            _itemId = itemId;
            _userId = userId;
            _mark = mark;
            _timestamp = timestamp;
            }

        public ItemResult( int itemId, int userId, int mark )
            {
            _itemId = itemId;
            _userId = userId;
            _mark = mark;
            _timestamp = DateTime.Now;
            }

        private int _itemId;

        public int ItemId
            {
            get
                {
                return _itemId;
                }
            }
        private int _userId;

        public int UserId
            {
            get
                {
                return _userId;
                }
            }
        private int _mark;

        public int Mark
            {
            get
                {
                return _mark;
                }
            }

        private DateTime _timestamp;

        public DateTime Timestamp
            {
            get
                {
                return _timestamp;
                }
            }
        }
    }
